<div class="modal" ui-if="loginModal" ui-state='loginModal'>
  <div class="modal-backdrop in"></div>
  <div class="modal-dialog my-modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">登录</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <div class="input-group">
            <div class="input-group-addon"><i class="fa fa-user"></i></div>
            <input type="text" class="form-control" name="useid" required ng-model="userid" placeholder="学号">
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <div class="input-group-addon"><i class="fa fa-lock"></i></div>
            <input type="password" class="form-control" name="password" required ng-model="password" placeholder="密码">
          </div>
        </div>
        <div class="form-group">
          <div class="row">
            <button ui-turn-off="loginModal" class="btn btn-default col-xs-offset-1 col-xs-5" ng-click="password = ''">取消</button>
            <button ui-turn-off="loginModal" class="btn btn-primary col-xs-5" ng-disabled="!userid || !password" ng-click="login()">确定</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>